/**
 * 
 */
package com.baijia.tianxiao.connect.config;

import com.baijia.tianxiao.util.encrypt.EncryptUtils;

/**
 * @author leiruiqi
 *
 */
public class Constants {

	public static String SESSION_USERNAME="session_user_name";
	
	public static String LAST_MSG_TIME = "last_message_time";
	
	public static String BIZ_TYPE = "biz_type";
	
	public static String USER_ID = "user_id";
	
	public static String DEVICE_TYPE = "device_type";
	
	public static String DEVICE_ID = "device_id";
	
	public static String EXTENTS_ATTRIBUTE = "extents_attribute";
	
	public static void main(String[] args) {
		String token="";
		try {
			token = EncryptUtils.wsEncode("abc", "a12345", 1);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		System.out.println(token);
		
		String jsonString = EncryptUtils.strDecode(token);
		
		System.out.println(jsonString);
		
	}
}
